package com.jiaai.shop.store.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.shop.store.entity.SGoods;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.mapper.Wrapper;
import java.util.List;
import java.util.Map;

/**
 * <p>
  * 商品图 Mapper 接口
 * </p>
 *
 * @author
 * @since 2018-04-01
 */
@Mapper
public interface SGoodsMapper extends BaseMapper<SGoods> {

    /**
     * 搜索所有商品
     * */
    @Select("SELECT * \n" +
            "FROM s_goods ${ew.sqlSegment} ")
    List<Map<String,Object>> findGoodsAll(Page page, @Param("ew") Wrapper wrapper);


}